// 登录头部
.xtx-login-header {
  width: 1170px;
  height: 132px;
  margin: 0 auto;

  .logo {
    width: 200px;
    height: 132px;
    text-indent: -999px;
    background-image: url(../../../assets/images/logo.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    float: left;
  }

  .home {
    float: right;
    margin-top: 82px;
    font-size: 16px;
    padding-right: 24px;

    i {
      color: #17bb9b;
      font-size: 12px;
      letter-spacing: -0.5em;

      &:last-child {
        opacity: 0.5;
      }
    }
  }
}

// 登录主体
.xtx-login-main {
  height: 488px;
  background: url(../../../assets/images/login-bg.png) no-repeat center / cover;

  .wrapper {
    width: 1170px;
    height: 100%;
    margin: 0 auto;
    position: relative;

    .box {
      width: 380px;
      box-shadow: 0px 0px 25px 0px rgba(3, 3, 3, 0.14);
      position: absolute;
      top: 60px;
      right: 100px;
      background: #fff;
      padding: 20px 40px;

      .tab-nav {
        display: flex;
        justify-content: space-between;
        position: relative;

        &::before {
          content: "";
          position: absolute;
          left: 50%;
          top: 8px;
          width: 1px;
          height: 20px;
          background: #ededed;
        }

        a {
          font-size: 18px;
          height: 35px;
          line-height: 35px;

          &.active {
            border-bottom: 2px solid #17bb9b;
          }
        }
      }

      .tab-pane {

        // 二维码登录
        .code {
          display: block;
          margin: 42px auto;
        }
      }
    }
  }
}

// 登录表单
.xtx-login-form {

  // 密码、短信登录
  .link {
    text-align: right;
    padding-top: 12px;

    a {
      color: #17bb9b;
    }
  }

  .input {
    margin-top: 17px;
    position: relative;

    .icon {
      color: #fff;
      width: 34px;
      height: 34px;
      text-align: center;
      line-height: 34px;
      font-size: 20px;
      position: absolute;
      left: 1px;
      top: 1px;
      background-color: #CFCDCD;
    }

    .clear {
      background: #fff;
      position: absolute;
      top: 1px;
      right: 1px;
      color: #ccc;
      cursor: pointer;
      width: 34px;
      text-align: center;
      line-height: 34px;

      &.r90 {
        right: 90px;
      }
    }

    .send {
      width: 90px;
      text-align: center;
      line-height: 34px;
      height: 34px;
      background: #F7F9FA;
      cursor: pointer;
      position: absolute;
      top: 1px;
      right: 1px;

      &.sending {
        color: #999;
      }
    }

    input {
      width: 100%;
      padding: 0 49px;
      background: #fff;
      line-height: 34px;
      border: 1px solid #CCC;
      width: 100%;
      height: 36px;

      &:focus,
      &:active {
        border-color: #17bb9b;
      }

      &.error {
        border-color: @priceColor;
      }

      &::placeholder {
        color: #B3B3B3 !important;
      }
    }
  }

  .agree {
    color: #B3B3B3;
    padding: 17px 0;

    a {
      color: #0673B1;
    }
  }

  .tip {
    color: @priceColor;
    padding-top: 17px;

    >span {
      vertical-align: middle;
      margin-right: 3px;
    }
  }

  .button {
    margin-bottom: 15px;

    .dl {
      height: 40px;
      line-height: 40px;
      text-align: center;
      background: #ccc;
      color: #fff;
      display: block;
      font-size: 16px;
      margin-bottom: 17px;

      &.valid {
        background: #17bb9b;
      }
    }
  }
}


// 登录底部
.xtx-login-footer {
  .copyright {
    height: 115px;
    padding-top: 40px;
    text-align: center;
    color: #999;
    font-size: 15px;

    p {
      line-height: 1;
      margin-bottom: 20px;
    }

    a {
      color: #999;
      line-height: 1;
      padding: 0 10px;
      border-right: 1px solid #999;

      &:last-child {
        border-right: none;
      }
    }
  }
}


